package com.ucode.model.cgms.convert;

import com.ucode.model.cgms.CgmsGift;
import com.ucode.model.cgms.form.CgmsGiftForm;
import com.ucode.model.cgms.vo.CgmsGiftSimpleVO;
import com.ucode.model.cgms.vo.CgmsGiftVO;
import com.ucode.tool.base.Paginator;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface CgmsGiftConvert {

    CgmsGiftConvert INSTANCE = Mappers.getMapper(CgmsGiftConvert.class);

    CgmsGift convert(CgmsGiftForm form);

    CgmsGiftVO convert(CgmsGift bean);

    Paginator<CgmsGiftVO> convertPage(Paginator<CgmsGift> page);

    Paginator<CgmsGiftSimpleVO> convertPageSimple(Paginator<CgmsGift> page);

    List<CgmsGiftVO> convertList(List<CgmsGift> list);




}


